using UnityEngine;

public class MenuParameters : MonoBehaviour
{
	public class MenuParams
	{
		public enum ShowScreen
		{
			None = 0,
			Multiplayer = 1,
			Career = 2
		}

		public bool showTrainingTutorial;

		public ShowScreen screenToShow;

		public bool multiplayerPush
		{
			get
			{
				return screenToShow == ShowScreen.Multiplayer;
			}
			set
			{
				if (value)
				{
					screenToShow = ShowScreen.Multiplayer;
				}
				else if (screenToShow == ShowScreen.Multiplayer)
				{
					screenToShow = ShowScreen.None;
				}
			}
		}

		public bool showCareer
		{
			get
			{
				return screenToShow == ShowScreen.Career;
			}
			set
			{
				if (value)
				{
					screenToShow = ShowScreen.Career;
				}
				else if (screenToShow == ShowScreen.Career)
				{
					screenToShow = ShowScreen.None;
				}
			}
		}
	}

	private static MenuParams _menuParams;

	public static MenuParams InitParameters
	{
		get
		{
			if (_menuParams == null)
			{
				_menuParams = new MenuParams();
			}
			return _menuParams;
		}
		set
		{
			_menuParams = value;
		}
	}
}
